package edu.sctu.practice.class01.huangtianlin.text1;

/**
 * Created by Administrator on 2015/10/14.
 */
public class A {


int v = 100;
    int num;

    public void judge(int num){

        this.num = num;

        if (num  > v){

            System.out.println("你输入的数大了");
        }else {

            if(num < v){

                System.out.println("你输入的数小了");
            }else {

                System.out.println("猜对了！！！");
            }

        }


    }

}
